var express = require('express');
var router = express.Router();
var conn=require('../dbs/user')



/* GET users listing. */
router.get('/', function (req, res, next) {
    res.send('respond with a resource');
});

router.get('/list', function (req, res, next) {
    conn.getUsers("select * from life_pic", function (data) {
        console.log("111");
        res.send(JSON.stringify(data));
        //res.wirte(data);
        //return JSON.stringify(data);
    })
});


module.exports = router;
